using System;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.IO;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Threading;
using System.Text;
using System.Security.Principal;

namespace CodePlex.Resourceful.Bookmarks.WebTest
{
    public class BookmarkServiceHandler : IHttpHandler
    {

        private readonly BookmarkService _service;
       

        public BookmarkServiceHandler()
        {
            _service = new BookmarkService();
        }
      

        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            IHttpContext c = new HttpContextAdapter(context, new Uri("http://localhost:43908/v1/"));
            _service.Process(c);
            
        }



     
       
    }
}
